<template>
	<view>
		<view class="cu-load load-modal" v-if="loading.loading">
			<image src="http://ximg.hyprkj.com/public/logo.png"></image>
			<view class="gray-text">加载中...</view>
		</view>
	</view>

</template>

<script>
	import {
		mapState,
		mapMutations
	} from 'vuex';
	export default {
		name: "loading",
		props: {
			show: {
				type: Boolean,
				default: false
			}
		},
		data() {
			return {
				CustomBar: this.CustomBar,
				isLoad: false,
				loadModal: false,
				loadProgress: 0
			}
		},
		watch: {
			loading(val) {
				console.log("loading变化");
				console.log(val);
			}
		},
		computed: {
			...mapState(['loading'])
		},
		methods: {
			hideModal() {
				this.ly = false
				this.$emit("update:show", false);
			}
		},
		onShow() {

		},
		onLoad() {

		}

	}
</script>

<style lang="scss">

</style>
